package com.y.architecture.login;

import com.y.architecture.base_net.BaseNet;
import com.y.architecture.weather.WeatherNet;

/**
 * Created by youjingjing on 2017/12/21.
 */

public class LoginNet extends BaseNet<LoginApi> {
    private static LoginNet loginNet;
    @Override
    protected String getDefaultBaseUrl() {
        return LoginApi.BASE_URL;
    }
    public static LoginNet getInstance() {
        if (loginNet==null){
            synchronized (WeatherNet.class){
                if (loginNet==null){
                    loginNet = new LoginNet();
                }
            }
        }
        return loginNet;
    }
}
